							var store_grid = new Ext.grid.GridPanel(
					        
					        {
						   // title:'仓库信息列表',
							region: 'center',
					        iconCls : 'icon-grid',
					        enableColumnMove:false,
					        enableColumnMoveResize:false,
					        stripeRows:true,
					        hight:500,
					        loadMask:{msg:"...加载数据中"},
					        store :store_ds,
					        cm:store_colModel,
							sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
					        viewConfig :{
					        forceFit : true,
					        columnsText:'显示的列',
							scrollOffset:20,
							sortAscText:'升序',
					        sortDescText:'降序'
					         },
							 tbar:new Ext.Toolbar(['-',{
					        	text:'增加',
					        	icon: Uec3.App.Constants.deskUrl+"/resources/images/default/dd/drop-add.gif",
					        	//cls: "x-btn-text-icon",
					        	handler:function(){
					        		
								if(!(store_form.getForm().getEl())){
								store_form.getForm().reset();
								}else{
								store_form.getForm().getEl().dom.reset();
								}
								store_form.getForm().findField('id').setValue('');
								store_win.buttons[0].show();
								store_win.buttons[1].show();
						        store_win.show(this);
								store_win.buttons[0].setText('增加');
								store_win.setTitle('增加仓库-按Esc退出');
								store_form.setDisabled(false);
					        }
					        }]),
							bbar: new Ext.PagingToolbar({
							pageSize:20,
							store:store_ds,
							display: true,
							displayInfo: true,
							displayMsg: '第 {0} - {1} 条  共 {2} 条',
					        emptyMsg: "没有记录",
							items:[/**
					                '-', {
					                pressed: true,
					                enableToggle:true,
					                text: 'Show Preview',
					                cls: 'x-btn-text-icon details',
					                toggleHandler:  function(btn, pressed){
					                    var view = store_grid.getView();
					                    view.showPreview = pressed;
					                    view.refresh();
					                }
					            }*/]         
							}) 
					        
					      });

						    store_ds.load();
						    
						    
						    
Uec3.StoreListWindow = Ext.extend(Ext.app.Module, {
    id: 'store_list',
    getPanel:function(scope) {
	var store_grid = new Ext.grid.GridPanel({
		region: 'center',
		iconCls : 'icon-grid',
		enableColumnMove:false,
		enableColumnMoveResize:false,
		stripeRows:true,
		hight:500,
		loadMask:{msg:"...加载数据中"},
		store :store_ds,
		cm:store_colModel,
		sm: new Ext.grid.RowSelectionModel({
			singleSelect:true
		}),
		viewConfig :{
			forceFit : true,
			columnsText:'显示的列',
			scrollOffset:20,
			sortAscText:'升序',
			sortDescText:'降序'
		},
		tbar:new Ext.Toolbar(['-',{
		text:'增加',
		iconCls : 'icon-add',
		handler:function(){
			if(!(store_form.getForm().getEl())){
				store_form.getForm().reset();
			}else{
				store_form.getForm().getEl().dom.reset();
			}
			store_form.getForm().findField('id').setValue('');
			store_win.buttons[0].show();
			store_win.buttons[1].show();
			store_win.show(this);
			store_win.buttons[0].setText('增加');
			store_win.setTitle('增加仓库-按Esc退出');
			store_form.setDisabled(false);
		}
		}]),
		bbar: new Ext.PagingToolbar({
			pageSize:20,
			store:store_ds,
			display: true,
			displayInfo: true,
			displayMsg: '第 {0} - {1} 条  共 {2} 条',
			emptyMsg: "没有记录"       
		})   
	});
    store_ds.load();		  
	return store_form;
	},
    createWindow : function(params){
   	  var windowId='initial_index';
   	  if(params){
   	  	windowId+=Ext.isEmpty(params.winId)?"":"_"+params.winId;
   	  }
      var desktop = this.app.getDesktop();
      var module=this.app.getModule(this.id);
      var win = desktop.getWindowByUecId(windowId);
      if(!win){
         win = desktop.createWindow({
         	//id:windowId,
            uecId:windowId,
            title: module.launcher.text,
            //closeAction:'hide',
			width:660,
			autoScroll:true,
			autoHeight:true,
			title:'增加仓库-按Esc退出',
			collapsible:true,
			constrait:true,
			modal:true,
			draggable:true,
			plain:true,
			header:true,
            resizable:false,
            layout: "fit", 
            items:[this.getPanel(this)],
            listeners:{
            	'resize':function(win,width,height){
            	}
            }
    	});
    } 
    win.show();
    }
});